/*
 * @Author: your name
 * @Date: 2021-09-24 08:52:37
 * @LastEditTime: 2021-10-12 15:18:32
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \led\main.c
 */
#include <stdio.h>
#include <wiringPi.h>
#include "gpio_dev.h"
#include "uart.h"
#include "robot.h"
#include "main.h"
#include "file.h"
int main(void)
{
	int count = 0,sd = -1,i = 0,fd=-1;
    fd=file_open(FILE_NAME);
	if(fd>0)
	{
		file_handle(fd);
		memcpy(G_ACT_GROUP,cmd,100*118);
	}
	//gpio_dev_init();
	sd = uart_init();
if(sd>=0)
{
    robot_action(GO_AWAY);
	robot_action(GO_BACK);

}
	
	//gpio_dev_opr (BEEP,ON);
	
    while(1)
	{

    }

    return 0;
}